{extend name="layout" /}
{block name="content"}
<div class="layui-tab layui-tab-brief">
	<ul class="layui-tab-title">
	    <li><a href="{:url('video')}">{$pathCurrent['name']}</a></li>
	    <li><a href="{:url('video_op')}">新增视频素材</a></li>
	    <li class="layui-this">分类管理</li>
	    <li><a href="{:url('category_op')}">新增视频分类</a></li>
  	</ul>
</div>
<div class="layui-card-body" data-model="table-bind">
	<table class="layui-table" data-table>
		<thead>
	      	<tr>
	        	<th width="80"><center>ID</center></th>
	        	<th>分类名称</th>
	        	<th width="150"><center>分类排序</center></th>
	        	<th width="150"><center>操作</center></th>
	      	</tr> 
	    </thead>
	    <tbody>
	    	{foreach $list as $vo}
	    	<tr>
	    		<td><center>{$vo['id']}</center></td>
	    		<td>{$vo['cname']|raw}</td>
	    		<td><center>{$vo['sort']}</td>
	    		<td><center>
	    			<a class="layui-btn layui-btn-xs" href="{:url('category_op',['id'=>$vo['id']])}">编辑</a>
	    			<a class="layui-btn layui-btn-danger layui-btn-xs" data-del data-id="{$vo['id']}" data-table="v_category">删除</a></center>
	    		</td>
	    	</tr>
	    	{/foreach}
	    </tbody>
	</table>
</div>
{/block}
{block name="js"}
<script type="text/javascript">
var mixin = {};
</script>
{/block}